package com.daniel.gof.decorator;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/11/19 11:01
 */
public class Mango implements Beverage {
    Beverage beverage;

    public Mango(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getName() {
        return beverage.getName() + ",加芒果";
    }

    @Override
    public double getPrice() {
        return beverage.getPrice() + 3;
    }
}
